import { useSelector, useDispatch } from 'react-redux'
import { minus } from '../store/action'
export default function Women() {
  const count = useSelector((state) => state)
  const dispatch = useDispatch()
  return (
    <div>
      <h3>女人组件</h3>
      <div>金钱：{count}</div>
      <button onClick={() => dispatch(minus(-100000))}>买包</button>
    </div>
  )
}
